package com.banmao.snake_core.entity;

import com.banmao.snake_core.config.Config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class GlobalConstant {

    @Value("${server.address}")
    public static String ADDRESS = Config.getServerAddress();

    @Value("${server.port}")
    public static Integer PORT = Config.getServerPort();

}
